package cn.xuchunh.campusbbs.ui.fragments;

import android.net.Uri;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

import cn.xuchunh.campusbbs.R;
import cn.xuchunh.campusbbs.adapter.PersonAdapter;
import cn.xuchunh.campusbbs.adapter.SimpleIndicatorAdapter;
import cn.xuchunh.campusbbs.base.BaseRecyclerViewAdapter;
import cn.xuchunh.campusbbs.base.BaseRefreshListFragment;
import cn.xuchunh.campusbbs.bean.Indicator;
import cn.xuchunh.campusbbs.viewholder.SimpleIconViewHolder;
import cn.xuchunh.campusbbs.widget.DividerItemDecoration;

/**
 * Created by XuChunH on 2015/10/4.
 */
public class DiscoverFragment extends SimpleIndicatorListFragment<SimpleIconViewHolder, Indicator> {

    @Override
    protected void loadDataFromCache() {
        List<Indicator> indicatorList = new ArrayList<>();
        indicatorList.add(new Indicator("周边用户", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_squre_icon5)));
        indicatorList.add(new Indicator("周边帖子", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_squre_icon4)));
        indicatorList.add(new Indicator("推荐用户", Uri.parse("res://" + getActivity().getPackageName() + "/" + R.drawable.mc_forum_squre_icon6)));
        loadDataFinished(true, indicatorList);
    }

    @Override
    public String getCacheKey() {
        return null;
    }

}
